package com.yx.fx.sys.web.model.update;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @author 杨智杰
 * @since 2021/8/23 9:48
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "修改密码的数据模型")
public class UpdatePassword {
    @NotBlank
    @Length(min = 32, max = 32)
    @ApiModelProperty(value = "旧密码", required = true)
    private String oldPassword;

    @NotBlank
    @Length(min = 32, max = 32)
    @ApiModelProperty(value = "新密码", required = true)
    private String newPassword;
}
